package cn.com.cnxfs.relaxchat.service.impl;

import cn.com.cnxfs.relaxchat.dao.FriendDao;
import cn.com.cnxfs.relaxchat.entity.Friend;
import cn.com.cnxfs.relaxchat.service.IFriendService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FriendService implements IFriendService {
    @Autowired
    private FriendDao friendDao;

    @Override
    public List<Friend> list(int uid) {
        return friendDao.list(uid);
    }

    @Override
    public void add(int uid, int friend) {
        friendDao.add(uid, friend);
    }

    @Override
    public void black(int id) {
        friendDao.black(id);
    }

    @Override
    public void deny(int id) {
        friendDao.deny(id);
    }
}
